package com.demo.mq.kafka.consumer;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

/**
 * @author lee9213@163.com
 * @version 1.0
 * @date 2017-04-04 20:43
 */
@Component
public class KafkaConsumer {

    @KafkaListener(topics = {"my-replicated-topic","my-replicated-topic2"})
    public void processMessage(String content){
        System.out.println(content);
    }
}
